exports.data = {
  json: {
    kind: "Snippet",
    body: ['"t-grid-item": "tdesign-miniprogram/grid-item/grid-item"'],
    detail: "Grid 宫格",
    documentation: `在app.json或index.json中引入组件`,
  },
  wxml: {
    kind: "Snippet",
    body: ["<t-grid${1}>${2}</t-grid>"],
    detail: "Grid 宫格",
    documentation: `宫格可以在水平方向上把页面分隔成等宽度的区块，用于展示内容或进行页面导航。`,
    attrs: [
      {
        kind: "Field",
        body: ["align="],
        detail: "align",
        documentation: "内容对齐方式。可选项：left/center",
        vals: {
          kind: "Value",
          body: ["left", "center"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["column="],
        detail: "column",
        documentation: "列数",
        vals: null,
      },
      {
        kind: "Field",
        body: ["gutter="],
        detail: "gutter",
        documentation: "格子之间的间距，默认单位为px",
        vals: null,
      },
      {
        kind: "Field",
        body: ["border"],
        detail: "border",
        documentation:
          "边框，默认不显示。值为 true 则显示默认边框，值类型为 object 则表示自定义边框样式。TS 类型：boolean | { color?: string; width?: string; style?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'inset' | 'outset' }",
        vals: {
          kind: "Value",
          body: ["true", "false", {}],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["hover"],
        detail: "hover",
        documentation: "是否开启格子点击反馈",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["theme="],
        detail: "theme",
        documentation: "是否调换图标和文本的位置",
        vals: {
          kind: "Value",
          body: ["default", "card"],
          detail: "",
          documentation: "",
        },
      },
      {
        kind: "Field",
        body: ["use-slot="],
        detail: "use-slot",
        documentation: "是否使用自定义内容的插槽",
        vals: {
          kind: "Value",
          body: ["true", "false"],
          detail: "",
          documentation: "",
        },
      },

      /**
         * Grid 外部样式类
          类名	说明
          custom-class	根节点样式类
         */
      {
        kind: "Field",
        body: ["t-class="],
        detail: "t-class",
        documentation: "根节点样式类",
        vals: null,
      },
    ],
  },
};
